package top.aigoo.project01.controller.local;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: 路由表
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/12 23:52
 */
@Controller
@RequestMapping("/local")
public class LocalController {
    /**
     * 绑定账号路由
     */
    @RequestMapping(value = "/accountbind", method = RequestMethod.GET)
    private String accountBind() {
        return "local/accountbind";
    }

    /**
     * 修改密码页路由
     */
    @RequestMapping(value = "/changepsw", method = RequestMethod.GET)
    private String changePsw() {
        return "local/changepsw";
    }

    /**
     * 登录页面路由
     */
    @RequestMapping(value = "/login")
    public String login(HttpServletRequest request) {
        return "local/login";
    }

    /**
     * 注册路由
     */
    @RequestMapping(value = "/register", method = RequestMethod.GET)
    private String register() {
        return "local/register";
    }


}
